<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Dcat\Admin\Traits\ModelTree;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class FourDepartment extends Model
{
	use HasDateTimeFormatter,ModelTree;
    use SoftDeletes;
    use HasFactory;
    protected $table = 'four_department';
    protected $titleColumn = 'name';
    protected $parentColumn = 'pid';
    protected $fillable=['name','campus_id'];
    public function campus(){
        return $this->hasOne(FourCampus::class,'id','campus_id');
    }


}
